package com.sky.annotation;

import com.sky.enumeration.OperationType;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author cgj
 * @Description 自定义注解，用于AOP自动注入数据
 * @create 2025-10-21 下午9:11
 */

@Retention(RetentionPolicy.RUNTIME)//确保在运行时也能被识别到
@Target({ElementType.METHOD})
public @interface AutoFill {

    //操作类型为update或insert
    OperationType value();
}
